plugor.Template = {
	cls:'jstemplate',
	init:function(){
		$('a.'+this.cls).click(function(){
			var from = plugor.getParameter('f',this.href);
			var to = plugor.getParameter('t',this.href);
			var $from = $('#'+from);
			var clone = $from.clone(true);
			var num = +$from.attr('num');
			clone.removeClass().removeAttr('id');
			$('#'+to).append(clone.html(clone.html().replace(/%d/g,num)));
			$from.attr('num',num+1);
			Loading.hidden();
			return false;
		});
	},
};